package com.model;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

import java.net.InetAddress;

@Data
@Component
public class ValueProperties {
    @Value("${value.name}")
    private String name;
    @Value("#{4*6}")
    private int age;
    @Value("${value.remote-address}")
    private InetAddress remoteAddress;
//    @Value("${value.roles}")
//    private int[] roles;
}
